home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
asmutil
/
coreaids.zip
/
ALOC_CHG.ASM
next >
Wrap
Assembly Source File
|
1987-06-25
|
902b
|
37 lines
; DESC: Modifies Allocated memory block size V1.00
; IN: *{BLOCK} segment address of memory block to be modified
; *{PARA} new requested block size in paragraphs {ie multiples
; of 16 bytes}
; SAMPLE: Callm ALOC_CHG,<BLOCK,PARA>,
; #############################################################
Extrn PUSHALL:Near ;save registers.
Extrn POPALL:Near
Extrn ERRORMSG:Near ;display error messages.
ALOC_CHC Segment
Assume CS:ALOC_CHC
Public ALOC_CHG
;notice.
DB 'ALOC_CHG - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
ALOC_CHG Proc Near
Call PUSHALL
Pop BX ;requested block size in para.
Pop ES ;segment of memory block.
Mov AH,4AH ;set memory block.
Int 21H
Jc ERROR ;if there is error report it.
Call POPALL
Ret
ERROR: Push AX ;report error, and abort.
Call ERRORMSG
ALOC_CHG Endp
ALOC_CHC Ends
End